﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Rose.Models.RequestModel>>" %>
<%@ Import Namespace="Rose.Helper" %>
 <% Rose.Helper.CheckRelationHelpModel helper = new Rose.Helper.CheckRelationHelpModel();
      
         
     string selfId = new CheckHelpModel().CheckCurrentUserId();
    
       %>



 <div id="requestlist">

 <%foreach (var item in Model)
     { %>
<%bool isFriend = helper.IsFriendRelation(selfId, item.UserId);
  string gender = item.Gender; %>
     <div class="request">

<div class="bigimagepart"><img class="friendimage" data="<%=item.UserId %>"

<%if(isFriend){ %>
onclick="FriendAlbum(this);"
<%} else {%>
onclick="PublicAlbum(this);"
<%} %>

 src="<%=item.ImagePath %>" /></div>

<div class="requestcontent">





<p class="fr">你在派对上与&nbsp;<a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.RequestName %></span></a>
成为
<a href="<%=Url.Action("ShowFriendList","Relation") %>"><span>好友</span></a></p>






<p><a class="laber">学校信息:</a><a class="info"><%=item.University %></a></p>
<p><a class="laber">家庭地址:</a><a class="info"><%=item.Address %></a></p>
<p><a class="laber">入学时间:</a><a class="info"><%=item.SchoolYear %></a></p>
<p><a class="laber">兴趣爱好:</a><a class="info tb">羽毛球-漫画-火影忍者-海贼王</a></p>
</div>


<p class="response">
<a class="confirmfeedback" data="<%=item.RequestId %>" onclick="ConfirmFeedBack(this);">确认</a>
</p>

</div><!--end of request--> 
<div class="clear"></div>
  <%} %>

  
</div><!-- end of list-->

